<?php

namespace App\Enums;

class FlyingEnum
{
    const POOL_TYPE_ONE     = 1;
    const POOL_TYPE_TEN     = 2;
    const POOL_TYPE_HUNDRED = 3;
    const POOL_TYPE_NEW     = 4;
    const POOL_TYPE_ALONE   = 5;
    const POOL_TYPE_SPECIAL = 30;
    const POOL_TYPE_CONFIG  = [
        self::POOL_TYPE_ONE     => '1连奖池',
        self::POOL_TYPE_TEN     => '10连奖池',
        self::POOL_TYPE_HUNDRED => '100连奖池',
        self::POOL_TYPE_NEW     => '新手奖池',
        self::POOL_TYPE_ALONE   => '独立奖池',
        self::POOL_TYPE_SPECIAL => '特殊奖池',
    ];

    const POOL_TYPE_ONE_NEXT     = 11;
    const POOL_TYPE_TEN_NEXT     = 12;
    const POOL_TYPE_HUNDRED_NEXT = 13;
    const POOL_TYPE_NEW_NEXT     = 14;
    const POOL_TYPE_ALONE_NEXT   = 15;
    const POOL_TYPE_CONFIG_NEXT  = [
        self::POOL_TYPE_ONE_NEXT     => '1连奖池',
        self::POOL_TYPE_TEN_NEXT     => '10连奖池',
        self::POOL_TYPE_HUNDRED_NEXT => '100连奖池',
        self::POOL_TYPE_NEW_NEXT     => '新手奖池',
        self::POOL_TYPE_ALONE_NEXT   => '独立奖池',
    ];
    const POOL_TYPE_MAP          = [
        self::POOL_TYPE_ONE     => self::POOL_TYPE_ONE_NEXT,
        self::POOL_TYPE_TEN     => self::POOL_TYPE_TEN_NEXT,
        self::POOL_TYPE_HUNDRED => self::POOL_TYPE_HUNDRED_NEXT,
        self::POOL_TYPE_NEW     => self::POOL_TYPE_NEW_NEXT,
        self::POOL_TYPE_ALONE   => self::POOL_TYPE_ALONE_NEXT,
    ];
    const TREE_COMMON_POOL = 1; //幸运树公池
    const TREE_SELF_POOL_SPECIAL = 40;//幸运树特殊个人
    const TREE_SELF_POOL_INDEPENDENT = 50;//幸运树个人独立
    const TREE_TYPE_ENUM = [
        // $type 奖池类型 1：单抽，2：十连，3：百连，4：新手，5：独立，30：特殊奖池, 40：特殊个人奖池, 50:特殊独立奖池
        1 => self::TREE_COMMON_POOL,
        2 => self::TREE_COMMON_POOL,
        3 => self::TREE_COMMON_POOL,
        40 => self::TREE_SELF_POOL_SPECIAL,
        50 => self::TREE_SELF_POOL_INDEPENDENT,
    ];
    const TYPE_ENUM_TO_IS_COMMON = [    //是否是公池，1是 0否
        self::TREE_COMMON_POOL => 1,
        self::TREE_SELF_POOL_SPECIAL => 0,
        self::TREE_SELF_POOL_INDEPENDENT => 0,
    ];
    const MODULE_TREE = 1;  //幸运树模块

    const TREE_DEFAULT_RATIO = 5;
    const MODULE_TO_NAME = [
        self::MODULE_TREE => '暴击流星',
    ];

    const MODULE_DEFAULT_RATIO = [
        self::MODULE_TREE  => self::TREE_DEFAULT_RATIO
    ];

    //更改类型
    const WINNER_CRITICAL_GIFT = 1; //中了暴击礼物
    const POOL_CHANGE = 2;  //奖池更换
    const POOL_CHANGE_ADMIN = 3;  //后台奖池更换
}
